package A04_链表.A41_单向链表;

/**
 * @Author: KingWang
 * @Date: 2021/5/30
 * @Desc:
 **/
public class LinkedNode {

    private int id; //当前地址
    private String value;
    private LinkedNode next;

    public LinkedNode(int id, String value) {
        this.id = id;
        this.value = value;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public LinkedNode getNext() {
        return next;
    }

    public void setNext(LinkedNode next) {
        this.next = next;
    }

    @Override
    public String toString() {
        return "LinkedNode{" +
                "id=" + id +
                ", value='" + value + '\'' +
                '}';
    }
}
